Building the Model: General Elements > General Information > General Information Dialog Box

 

General Information Dialog Box

The fields of the General Information dialog box are as follows:

 

Title An optional, brief description of the model. Information will be displayed in the caption bar and included in the model and results files.

 

Time Units The unit for any time value in the model that does not have an explicitly specified time unit. The smallest unit of time available in MedModel is .00001 second and the largest is 1 day.

 

Distance Units The units in feet or meters for all distances specified in the model. There is no practical limit on the size of the model.

 

Model Notes... Brings up a notes window for specifying general notes about the model. Notes are optional and are for user reference only. An alternative way to display notes is using a DISPLAY statement (see Display) in the initialization logic.

 

Graphic Library File Opens a dialog box for selecting the graphic library file to use with the open model. Graphics library files have the extension GLB and are further explained later in this section.

 

Initialization Logic Opens the Initialization Logic window for specifying initialization logic. An asterisk (*) next to the name of the button means that some initialization logic has been defined for the model. (See Initialization Logic.)

 

Termination Logic Opens the Termination Logic window for specifying termination logic. An asterisk (*) next to the name of the button means that some termination logic has been defined for the model. (See Termination Logic.)

Initialization Logic

Initialization logic allows you to initialize arrays, variables, and other elements at the beginning of a simulation run as shown below:

Other common uses of initialization logic include:

For a discussion of each of the buttons in the Initialization Logic window, see Editing Logic Windows.

Termination Logic

Termination logic allows you to summarize data or write special statistics to an output file at the end of a simulation run as shown below:

Other common uses of termination logic include:

See the following page for a discussion on the placement of initialization and termination logic within the sequence of run-time events.

Please note

Although Initialization and Termination logic cannot be tested with the Compile option in the Edit menu, as with Processing or Arrival logic, the logic can be tested by clicking on the compile button in the logic window. MedModel checks all logic automatically upon selecting OK and, if an error in the logic is found, an error message describing the problem will appear.

Execution Time of Initialization and Termination Logic

It is important to understand exactly when initialization and termination logic is executed. When you select Run from the Simulation menu the following things occur in the order listed:

  1. Arrays are initialized based upon the defined Import specifications
  2. Variables are initialized to the values specified in the Variables Editor.
  3. Macros defined as a scenario parameter are set to their user-specified value.
  4. The model is loaded into the simulation module. As the model is loaded, any numeric expressions used to define such things as location capacities or number of resource units are evaluated and assigned a numeric value.
  5. Initialization logic is performed.
  6. Simulation begins. Initial arrivals and downtimes are scheduled and simulation processes begin.
  7. Simulation ends.
  8. Termination logic is performed.
  9. Statistics are compiled.

Logic elements that figure into a model's structure are evaluated only when the model is loaded into the simulation module. Those logic elements are:

For a complete list of when each field is evaluated, see Appendix.

 

Any variables or arrays used in an expression that change any of these logic elements should be initialized in the Variables Editor, Arrays Import,scenario manager and not in the initialization logic. The model structure cannot change after the model has been loaded into the simulation module. Thus, any variable or array figuring into a location's capacity and initialized in the initialization logic will be initialized too late to affect the location's capacity.

 

Variables or arrays which do not figure into a location's capacity may be initialized in the Initialization Logic without any problem. A variable initialized in the initialization logic could be used as the “First Time” for an arrival or downtime occurrence. This is true because arrivals and downtime occurrences are simulation events, and all initialization logic occurs before the first simulation event.

Graphic Library File

MedModel allows you to create and store as many graphics libraries as desired. However, only one graphic library may be used for each model. To copy a graphic from one graphic library to another model's graphic library, see Graphic Editor.

How to select the desired graphics library:

  1. Select Graphic Library File from the General Information dialog box.

  1. Enter the name of the desired graphics library.
  2. Select OK.

Please note

Only files with the extension GLB may be used as graphics libraries. For more information on creating, merging and saving graphics libraries, see Graphic Editor.


© 2011 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com